package com.bionic.banking.commands;

import com.bionic.banking.auth.manager.Config;
import com.bionic.banking.dao.connection.LoggerLoader;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

public class CommandStartEditBankAccount implements ICommand {

    private static final org.apache.log4j.Logger logger =
            LoggerLoader.getLogger(CommandStartEditBankAccount.class);

    @Override
    public String execute(HttpServletRequest request, HttpServletResponse response)
            throws ServletException {
        // to show 'edit bankaccount page' in main content
        request.setAttribute("content", Config.getInstance().getProperty(Config.EDIT_BANKACCOUNT));
        String page = Config.getInstance().getProperty(Config.MAIN);
        return page;
    }
}
